package ide;

import java.awt.Dimension;
import java.awt.ScrollPane;

import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;

public class ScrollPaneTreeView extends JScrollPane{
	private static final long serialVersionUID = 1L;
	private static TreeView treeView = new TreeView();
	
	public ScrollPaneTreeView()
	{
		super(treeView);
		this.setPreferredSize(new Dimension(150,100));
		this.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		this.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
		this.setVisible(true);
	}
	
	public static TreeView getTree()
	{
		return treeView;
	}
}
